package me.zhengjie.modules.management.service.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @Author: chenxin.jiang
 * @Date: 2020/12/17
 * @Description: 导出数据对象模板
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MrRecordRepDto {
    @ExcelProperty("ID")
    @ApiModelProperty(value = "ID")
    private Integer recordId;

    @ExcelProperty("状态名称")
    @ApiModelProperty(value = "状态名称")
    public String statusName;

    @ExcelProperty("教室名称")
    @ApiModelProperty(value = "教室名称")
    public String roomName;

    @ExcelProperty("主题")
    @ApiModelProperty(value = "主题")
    public String subject;

    @ExcelProperty("申请原因")
    @ApiModelProperty(value = "申请原因")
    public String memo;

    @ExcelProperty("开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 出参格式化
    @ApiModelProperty(value = "开始时间")
    public String beginDate;

    @ExcelProperty("结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") // 出参格式化
    @ApiModelProperty(value = "结束时间")
    public String endDate;

    /*@ExcelProperty("实际开始时间")
    @ApiModelProperty(value = "实际开始时间")
    public Timestamp realBeginDate;

    @ExcelProperty("实际结束时间")
    @ApiModelProperty(value = "实际结束时间")
    public Timestamp realEndDate;*/

    @ExcelProperty("短号")
    @ApiModelProperty(value = "短号")
    public String extNo;

    @ExcelProperty("培训类型")
    @ApiModelProperty(value = "培训类型")
    public String purposeName;

    @ExcelProperty("申请人")
    @ApiModelProperty(value = "申请人")
    public String applicantName;

    @ExcelProperty("部门")
    @ApiModelProperty(value = "部门")
    public String deptName;

    @ExcelProperty("参会人数")
    @ApiModelProperty(value = "参会人数")
    public Integer userNumber;

    @ExcelProperty("其他需求")
    @ApiModelProperty(value = "其他需求")
    public String otherRemark;

    @ExcelProperty("会议室能源费用")
    @ApiModelProperty(value = "会议室能源费用")
    public BigDecimal roomCost;

    @ExcelProperty("物资费用")
    @ApiModelProperty(value = "物资费用")
    public BigDecimal materialsCost;

    @ExcelProperty("需求物资")
    @ApiModelProperty(value = "需求物资")
    public String remark;

}
